﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LibGreen.Utility
{
	/// <summary>
	/// Encapsulates proxy usage information for a plugin to connect to the Internet
	/// </summary>
	public class ProxyInfo
	{
		private ShaimProxyType _type = ShaimProxyType.None;
		private string _server = "";
		private int _port;
		private string _username = "";
		private string _password = "";

		/// <summary>
		/// Gets the type of proxy protocol to use
		/// </summary>
		public ShaimProxyType ProxyType
		{
			get { return _type; }
			internal set { _type = value; }
		}

		/// <summary>
		/// Gets the proxy server through which to connect
		/// </summary>
		public string Server
		{
			get { return _server; }
			internal set { _server = value; }
		}

		/// <summary>
		/// Gets the proxy port through which to connect
		/// </summary>
		public int Port
		{
			get { return _port; }
			internal set { _port = value; }
		}

		/// <summary>
		/// Gets the username to use for proxy authentication
		/// </summary>
		public string Username
		{
			get { return _username; }
			internal set { _username = value; }
		}

		/// <summary>
		/// Gets the password to use for proxy authentication
		/// </summary>
		public string Password
		{
			get { return _password; }
			internal set { _password = value; }
		}
	}
}
